package com.hytc.mymall.application;

import android.app.Activity;
import android.app.Application;
import android.os.Environment;

import com.hytc.mymall.bean.LoginBean;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;


public class ActivityManager
  extends Application
{
  public static String CHANNELID = "";
  public static String HEAD_DIR;
  public static String PIC_HEAD;
  public static int SLEEP_TIME;
  public static int VERIFY_BIND_PHONE;
  public static int VERIFY_CHANGE_SECONDPSW;
  public static int VERIFY_FORGET_PSW;
  public static int VERIFY_FORGET_SECONDPSW;
  public static int VERIFY_MEMBER_REGIST = 1;
  public static int VERIFY_MERCHANT_REGIST = 2;
  public static int VERIFY_UNBIND_PHONE;
  public static int VERIFY_ZHUANZENG;
  public static LoginBean.Data_Login loginBean;
  private static ActivityManager mActivityManager;
  public static ActivityManager manager;
  public List<Activity> activityList = new LinkedList();
  
  static
  {
    VERIFY_CHANGE_SECONDPSW = 3;
    VERIFY_FORGET_PSW = 4;
    VERIFY_UNBIND_PHONE = 5;
    VERIFY_BIND_PHONE = 6;
    VERIFY_FORGET_SECONDPSW = 7;
    VERIFY_ZHUANZENG = 13;
    SLEEP_TIME = 1500;
    HEAD_DIR = Environment.getExternalStorageDirectory() + "/ydgy/";
    PIC_HEAD = "head.png";
  }
  
  public ActivityManager()
  {
//    PlatformConfig.setWeixin("wx558041019db5e744", "8d6f9a2c1d030d67aa389aa628480fd7");
//    PlatformConfig.setSinaWeibo("560762950", "b065d559dc2fdf1ce53d177d78526992");
  }
  
  public static ActivityManager getApp()
  {
    return mActivityManager;
  }
  
  public static ActivityManager getInstance()
  {
    if (manager == null) {
      manager = new ActivityManager();
    }
    return manager;
  }
  
  public void SingleActivity(Activity paramActivity)
  {
    Iterator localIterator = this.activityList.iterator();
    for (;;)
    {
      if (!localIterator.hasNext()) {
        return;
      }
      Activity localActivity = (Activity)localIterator.next();
      if (paramActivity != localActivity) {
        localActivity.finish();
      }
    }
  }
  
  public void addActivity(Activity paramActivity)
  {
    this.activityList.add(paramActivity);
  }
  
  public void exit()
  {
    Iterator localIterator = this.activityList.iterator();
    for (;;)
    {
      if (!localIterator.hasNext())
      {
        System.exit(0);
        return;
      }
      ((Activity)localIterator.next()).finish();
    }
  }
  
  public void onCreate()
  {
    super.onCreate();
//    FIR.init(this);
//    mActivityManager = this;
//    PushManager.startWork(getApplicationContext(), 0, "PSkvFVcOORtRISmztpn5nsED");
  }

}



/* Location:           C:\Users\Joker\Desktop\classes_dex2jar.jar

 * Qualified Name:     com.sz.ydgy.application.ActivityManager

 * JD-Core Version:    0.7.0.1

 */